<table id="" class="tablesorter"> 
    <thead> 
        <tr> 
            <th>#</th>
            <th><?php echo $lang['text_name'] ?></th> 
            <th><?php echo $lang['text_date_added'] ?></th> 
            <th><?php echo $lang['text_status'] ?></th> 
            <th><?php echo $lang['text_action'] ?></th> 
        </tr> 
    </thead> 

    <tbody> 

        <?php foreach ($jobs as $job) { ?>
            <tr> 
                <td><?php echo $job->job_id ?></td> 
                <td><?php echo $job->name ?></td> 
                <td><?php echo $job->date_added ?></td> 
                <td id="stt<?php echo $job->job_id ?>"><?php echo ($job->status == 1) ? $lang['text_active'] : $lang['text_deactive'] ?></td> 
                <td>
                    <a href="<?php echo admin_url('jobs/form/' . $job->job_id) ?>" title="<?php echo $lang['text_edit'] ?>"><img src="<?php echo base_url() ?>/admin_public/img/Pencil-icon.png"/></a>
                    <div id="status<?php echo $job->job_id ?>" style="display: inline-block">
                        <?php if ($job->status == 1) { ?>
                            <a href="javascript:de_active(<?php echo $job->job_id ?>)" title="<?php echo $lang['text_deactive'] ?>"><img src="<?php echo base_url() ?>/admin_public/img/delete-file-icon.png"/></a>
                        <?php } else { ?>
                            <a href="javascript:active(<?php echo $job->job_id ?>)" title="<?php echo $lang['text_active'] ?>"><img src="<?php echo base_url() ?>/admin_public/img/folder-add-icon.png"/></a>
                        <?php } ?>
                    </div>

                </td> 
            </tr> 
        <?php } ?>
    </tbody> 
</table>